﻿using System;
using System.Web;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.system.workflow.flow_sort
{ 
    public partial class sort_delete : ModulePage
    {       

        protected void Page_Load(object sender, EventArgs e)
        {
            int num = (Request.QueryString["sort_id"] == null) ? 0 : int.Parse(Request.QueryString["sort_id"].ToString());
            FlowSortDao dao = new FlowSortDao();
            if (dao.Delete(base.Conn, num))
            {
                this.litMessage.Text = base.ShowPrompt("流程分类删除成功!", "index.aspx");
            }
            else
            {
                this.litMessage.Text = base.ShowPrompt("该分类下存在流程，请先删除流程再删除分类！", "index.aspx");
            }
        }
       
    }
}

